module.exports = {
  
  type: 'list',
  async fetch({ page, args }) {
    let resp = await $http.get(`${args.url}`)
    const $ = cheerio.load(resp.data)
    let list = $('li', '.stui-content__playlist')
    let items = []
    list.each((index, li) => {
      let title = $('a', li).attr('title')
      let url = 'http://www.mahuaba.com' + $('a', li).attr('href')
      items.push({
        link: url,
        style: 'list',
        title: title,
        summary: '点我观看嗷',
        route: $route('other/player', {
          url: url
        })
      })
    })
    return {
      items
    }
  }
}
